package com.sharemarking.application.common.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sharemarking.application.common.BaseEntity;

@Entity
@Table(name="sys_permission")
public class Permission extends BaseEntity {
	@ManyToOne @JoinColumn(name="roleId")
	private Role role;
	@ManyToOne @JoinColumn(name="menuId")
	private Menu menu;
	private Integer permission;
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Menu getMenu() {
		return menu;
	}
	public void setMenu(Menu menu) {
		this.menu = menu;
	}
	public Integer getPermission() {
		return permission;
	}
	public void setPermission(Integer permission) {
		this.permission = permission;
	}
}
